<extend name="Base/common"/>
<block name="body">
    <link type="text/css" rel="stylesheet" href="__CSS__/group.css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
	<div class="col-xs-12">
        {:W('Common/Adv/render',array(array('name'=>'grouplist')))}
    </div>
    <div class="col-xs-6 margin-bottom-15">
    	<div class="group_tags group_types">
            <b>树丛标签：</b>
            <a href="{:U('groups')}" <if condition="!$group_cate">class="active"</if>>全部</a>
            <volist name="parent" id="type">
                <a href="{:U('groups',array('cate'=>$type['id']))}" data-id="{$type['id']}" class="ptype <if condition="
                   $group_cate eq $type['id']">active</if>">
                {$type.title}
                </a>
            </volist>
        </div>
    </div>
    <div class="col-xs-6">
    	<div class="group_btnwp">
			<h2>没有你想加入的树丛，那就自己开发新大陆吧！</h2>
			<a href="{:U('Group/Index/create')}" class="">新建树丛</a>
		</div>
    </div>
    <div class="clearfix visible-xs-block"></div>
    <div class="col-xs-12">
    	<div class="cllb-list">
				<div class="head">
					<h2>树丛列表<small>list</small></h2>
					<dl>
						<dt>排序：</dt>
						<dd <if condition="$order eq 'member' ">class="selected"</if> ><if condition="$group_cate"><a href="{:U('Group/Index/groups/order/member',array('cate'=>I('get.cate','')))}"><else /><a href="{:U('Group/Index/groups/order/member')}"></if>人数</a></dd>
						<dd <if condition="$order eq 'post_count' ">class="selected"</if> ><if condition="$group_cate"><a href="{:U('Group/Index/groups/order/post_count',array('cate'=>I('get.cate','')))}"><else /><a href="{:U('Group/Index/groups/order/post_count')}"></if>话题数</a></dd>
					</dl>
				</div>
				<div class="body">
					 
					<ul>
						<volist name="group_list" id="vo">
                            {:W('Group/Detail/group',array('group_id'=>$vo))}
                        </volist>
					</ul>
					
				</div>
				<div class="gb-pages pull-right">
					{:getPagination($totalCount,$r)}
				</div>
			</div>
		</div>
    </div>
    
</block>


